Optimal. Leaf size=26 \[ \frac {1}{2} \sqrt {x-1} \sqrt {x+1} x+\frac {1}{2} \cosh ^{-1}(x) \]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {90, 52} \begin {gather*} \frac {1}{2} \sqrt {x-1} \sqrt {x+1} x+\frac {1}{2} \cosh ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 90
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {-1+x} \sqrt {1+x}} \, dx &=\frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\frac {1}{2} \int \frac {1}{\sqrt {-1+x} \sqrt {1+x}} \, dx\\ &=\frac {1}{2} \sqrt {-1+x} x \sqrt {1+x}+\frac {1}{2} \cosh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 36, normalized size = 1.38 \begin {gather*} \frac {1}{2} \sqrt {x-1} \sqrt {x+1} x+\tanh ^{-1}\left (\frac {\sqrt {x-1}}{\sqrt {x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.07, size = 62, normalized size = 2.38 \begin {gather*} \frac {\frac {(x-1)^{3/2}}{(x+1)^{3/2}}+\frac {\sqrt {x-1}}{\sqrt {x+1}}}{\left (\frac {x-1}{x+1}-1\right )^2}+\tanh ^{-1}\left (\frac {\sqrt {x-1}}{\sqrt {x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.36, size = 32, normalized size = 1.23 \begin {gather*} \frac {1}{2} \, \sqrt {x + 1} \sqrt {x - 1} x - \frac {1}{2} \, \log \left (\sqrt {x + 1} \sqrt {x - 1} - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.18, size = 30, normalized size = 1.15 \begin {gather*} \frac {1}{2} \, \sqrt {x + 1} \sqrt {x - 1} x - \log \left (\sqrt {x + 1} - \sqrt {x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 40, normalized size = 1.54 \begin {gather*} \frac {\sqrt {x -1}\, \sqrt {x +1}\, \left (\sqrt {x^{2}-1}\, x +\ln \left (x +\sqrt {x^{2}-1}\right )\right )}{2 \sqrt {x^{2}-1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.60, size = 27, normalized size = 1.04 \begin {gather*} \frac {1}{2} \, \sqrt {x^{2} - 1} x + \frac {1}{2} \, \log \left (2 \, x + 2 \, \sqrt {x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.51, size = 194, normalized size = 7.46 \begin {gather*} 2\,\mathrm {atanh}\left (\frac {\sqrt {x-1}-\mathrm {i}}{\sqrt {x+1}-1}\right )-\frac {\frac {14\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {x+1}-1\right )}^3}+\frac {14\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^5}{{\left (\sqrt {x+1}-1\right )}^5}+\frac {2\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^7}{{\left (\sqrt {x+1}-1\right )}^7}+\frac {2\,\left (\sqrt {x-1}-\mathrm {i}\right )}{\sqrt {x+1}-1}}{1+\frac {6\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {x+1}-1\right )}^4}-\frac {4\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^6}{{\left (\sqrt {x+1}-1\right )}^6}+\frac {{\left (\sqrt {x-1}-\mathrm {i}\right )}^8}{{\left (\sqrt {x+1}-1\right )}^8}-\frac {4\,{\left (\sqrt {x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {x+1}-1\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 24.12, size = 87, normalized size = 3.35 \begin {gather*} \frac {{G_{6, 6}^{6, 2}\left (\begin {matrix} - \frac {3}{4}, - \frac {1}{4} & - \frac {1}{2}, - \frac {1}{2}, 0, 1 \\-1, - \frac {3}{4}, - \frac {1}{2}, - \frac {1}{4}, 0, 0 & \end {matrix} \middle | {\frac {1}{x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} - \frac {i {G_{6, 6}^{2, 6}\left (\begin {matrix} - \frac {3}{2}, - \frac {5}{4}, -1, - \frac {3}{4}, - \frac {1}{2}, 1 & \\- \frac {5}{4}, - \frac {3}{4} & - \frac {3}{2}, -1, -1, 0 \end {matrix} \middle | {\frac {e^{2 i \pi }}{x^{2}}} \right )}}{4 \pi ^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________